﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class SiteMaster : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
            treeView.Nodes.Add(new TreeNode("Node1"));
            treeView.Nodes[0].ChildNodes.Add(new TreeNode("ChildNode"));
            
    }

    protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
    {
        Response.Write(treeView.SelectedNode.Text);
    }
}
